package com.ruoyi.busi.service;


import com.ruoyi.busi.domain.BusiCompanyQuota;
import com.ruoyi.busi.domain.bo.BusiCompanyQuotaBo;
import com.ruoyi.busi.domain.vo.BusiCompanyQuotaVo;
import com.ruoyi.common.core.mybatisplus.core.IServicePlus;
import com.ruoyi.common.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 企业配额Service接口
 *
 * @author ruoyi
 * @date 2024-11-24
 */
public interface IBusiCompanyQuotaService extends IServicePlus<BusiCompanyQuota, BusiCompanyQuotaVo> {
	/**
	 * 查询单个
	 * @return
	 */
	BusiCompanyQuotaVo queryById(Long id);

	/**
	 * 查询列表
	 */
    TableDataInfo<BusiCompanyQuotaVo> queryPageList(BusiCompanyQuotaBo bo);

	/**
	 * 查询列表
	 */
	List<BusiCompanyQuotaVo> queryList(BusiCompanyQuotaBo bo);

	/**
	 * 根据新增业务对象插入企业配额
	 * @param bo 企业配额新增业务对象
	 * @return
	 */
	Boolean insertByBo(BusiCompanyQuotaBo bo);

	/**
	 * 根据编辑业务对象修改企业配额
	 * @param bo 企业配额编辑业务对象
	 * @return
	 */
	Boolean updateByBo(BusiCompanyQuotaBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
